package cn.seecoder.courselearning.mapperservice.course;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;


@Component
public interface CourseLikesMapper {
    int deleteByPrimaryKey(@Param(value = "courseId") Integer courseId, @Param(value = "userId") Integer userId);

    int insert(@Param(value = "courseId") Integer courseId, @Param(value = "userId") Integer userId);

    int count(@Param(value = "courseId") Integer courseId, @Param(value = "userId") Integer userId);

    int countLikesOfCourse(@Param(value = "courseId") Integer courseId);

}
